/*
 * Copyright 2020-2025 the original author or authors.
 * You cannot use this file unless authorized by the author.
 */
package org.ipig.model.anls;

import org.ipig.constants.DbmsOperators;
import org.ipig.model.ConnectorConf;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * 关联集合配置
 * Relation-->缩写RLAT
 *
 * @author <a href="mailto:comchnts@163.com">chinats</a>
 * @version $$Id: AnlsRlatCollConf.java 3 2020-01-21 09:36:33Z ts <comchnts@163.com> $$
 * @since 1.0
 */
@Data
@ToString
public class AnlsRlatCollConf implements Serializable {
    //关联集合名称
    private String collName;
    //多个用逗号分隔
    private String fields = "";
    //字段关联,用 主集合fieldName=子集合fieldName 结构，多个按照顺序以逗号隔开;
    private String fieldsRlat = "";
    //连接类型：支持inner(内连接）【默认】-用于业务关联、rigth(右连接）-用于业务关联、left(左连接)-用于参数关联
    private String joinType = DbmsOperators.JoinType.INNER.code;
    //多个用逗号分隔,格式 id:-1,xx:1
    private String sortFields = "";
    //cache开关：true为开启，其它为关闭，默认为关闭
    private Boolean cacheEnable =Boolean.valueOf(false);
    //cache时间，默认值为0,值为0意味着元素可以闲置至无限长时间
    private int cacheSeconds =0;
    /**
     * 连接器Conf
     **/
    private ConnectorConf connectorConf;
}
